package A20180402;

public class aaa {
	public static void main(String[] args) {
		ccc a = new ccc();
		bbb b = new bbb();
		
		a.ddd();
		b.ddd();
	}
}

class bbb extends ccc {
	@Override
	public String getInfo( ) {
		return "hahaha";
	}
}

class ccc {
	public String getInfo() {
		return "lalala";
	}
	
	public void ddd() {
		System.out.println(getInfo());
	}
}